# -------------------------------------- 
# FileName: CMakeLists.txt 
# Content:
#   考核性任务，构建文件
# Auther:  杨则瑞 
# Encode:  utf-8 | CRLF                  
# -------------------------------------- 

cmake_minimum_required(VERSION 4.1)
project("examinal_tasks")

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_COMPILER gcc)

# glob sources
file(GLOB_RECURSE sources "../common/*.c")

# glob headers
file(GLOB includes LIST_DIRECTORIES TRUE "../common/*")
list(REMOVE_ITEM includes sources)
include_directories(${includes})

# Define DEBUG_MODE marco
# add_definitions(-DDEBUG_MODE -DDESKTOP_MODE)
add_definitions(-DDEBUG_MODE)



add_executable(1_1.employee_manager.sqList          ${sources} ./1_1.employee_manager.c)
add_executable(1_2.employee_manager.linkedList      ${sources} ./1_2.employee_manager.c)
add_executable(2.parklot_manager.stack_and_queue    ${sources} ./2_1.stack_and_queue.c)
add_executable(2.La_Dache.stack_and_queue    ${sources} ./2_2.LaDache.c)

add_executable(3.binomino_tree                      ${sources} ./3.binomino_tree.c)




